﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using Microsoft.SqlServer.Management.Smo;
using Microsoft.SqlServer.Management.Common;

namespace CreateDatabase
{
	static class CreateDatabase
	{

		static public string ConnectionString = ApplicationConfiguration.ConnectionString;

		static public void createTheDB()
		{
			string sql = "";
			runQuery(sql);
		}

		static public void runQuery(string command)
		{
			SqlConnection sqlConnection = new SqlConnection(ConnectionString);
			Server server = new Server(new ServerConnection(sqlConnection));
			server.ConnectionContext.ExecuteNonQuery(command);
		}
	}


}
